package org.sgsm.dungeon.common;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class ServiceAbstractImpl 
{
	public Session getSession()
	{
		Configuration cfg = ConfigUtil.getConfiguration();
		SessionFactory sessionFactory = cfg.buildSessionFactory();
		return sessionFactory.openSession();
	}
}

